package req

import "gitee.com/zaiqiang231/zcamp-service-camp/app/model"

type PostCreateReq struct {
	model.PostInfo
	ReqImages     []model.PictureObj `json:"req_images" gorm:"-"`      // 图集
	ReqTopicNames []string           `json:"req_topic_names" gorm:"-"` // 话题名称列表
}

type PostUpdateReq struct {
	model.PostInfo
	ReqImages []model.PictureObj `json:"req_images" gorm:"-"` // 图集
}

type PostDelReq struct {
	PostId    string `json:"post_id" form:"post_id"`
	CreateUid string `json:"create_uid" form:"create_uid"`
}

type PostListReq struct {
	model.PostInfo
	PageInfo
}

type OperatePostReq struct {
	Uid        uint64 `json:"uid"`         // 帖子作者UID
	PostId     string `json:"post_id"`     // 帖子ID
	PostStatus int    `json:"post_status"` // 帖子状态 2：下线
}

type PostDetailReq struct {
	PostId    string `json:"post_id" form:"post_id"`
	CreateUid string `json:"create_uid" form:"create_uid"`
}

type PostRecordReq struct {
	PostId    string `json:"post_id" form:"post_id"`
	CreateUid string `json:"create_uid" form:"create_uid"`
}

type PostLikeOrNotReq struct {
	PostId    string `json:"post_id" form:"post_id"`
	CreateUid string `json:"create_uid" form:"create_uid"`
}

type RecommendListReq struct {
	CursorInfo
}

type NearByListReq struct {
	CursorInfo
	Longitude string `json:"longitude" form:"longitude"` //经度
	Latitude  string `json:"latitude" form:"latitude"`   //纬度
}

type PunchListReq struct {
	CursorInfo
	CampId int64 `json:"camp_id"`
}

type SubjectCreateReq struct {
	model.Subject
	ReqImages []model.PictureObj `json:"req_images" gorm:"-"` // 图集
}

type SubjectUpdateReq struct {
	model.Subject
	ReqImages []model.PictureObj `json:"req_images" gorm:"-"` // 图集
}

type SubjectListReq struct {
	model.Subject
	PageInfo
}

type SubjectContentListReq struct {
	PageInfo
	SubjectID int64 `json:"subject_id" form:"subject_id"` // 专题类型ID
}

type TopicSearchReq struct {
	Keyword string `json:"keyword"` //搜索关键词
}

type TopicDetailReq struct {
	Name string `json:"name" form:"name"` //搜索关键词
}
